package com.lorenzogao.domian

import java.math.BigInteger
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.validation.constraints.Min
import javax.validation.constraints.NotNull

/**
 * Created by 15270 on 2018/1/23.
 *
 * 对应数据库一张表
 */

@Entity
data class Gril(
        var cupSize:String,
        @field:Min(value = 18,message = "未成年少女禁止入内")var age :Int,
        var monery:Int,
        @Id @GeneratedValue var id:Int=-1
)